/*******************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        */
/*                                                                 */
/*  NAME      = rtsp_packet.h                                      */
/*  NOTE      =                                                    */
/*  DATE      = 2015/07/14 by songbb                               */
/*******************************************************************/

#ifndef __RTSP_PACKET_H_
#define __RTSP_PACKET_H_

#include "rtsp_core.h"

#define APM_RTSP_PACKET_FRAGMENTED 0
#define APM_RTSP_PACKET_UNFRAGMENTED 1
#define APM_RTSP_PACKET_ERROR 2

#define APM_RTSP_CHECK_FRAGMENT_SUCCESS 0
#define APM_RTSP_CHECK_FRAGMENT_NEED_NEXT_PACKET 1
#define APM_RTSP_CHECK_FRAGMENT_ERROR 2

int rtsp_init_packet(L7_rtsp_packet *p_st_rtsp_packet);

int rtsp_packet_unfragment(L7session_rtsp *p_st_sess
                        , Apm_packet *p_st_packet
                        , L7_rtsp_packet *p_st_rtsp_packet);

#endif
